﻿@model SimpleForum.Data.Models.User

<div class="user-info @ViewBag.cssclass" id="@Model.Id">
    <div class="social">
        @if (Model.FacebookUsername != null) { <a href="http://www.facebook.com/@Model.FacebookUsername" title="Visit @Model.UserName's facebook page" target="_blank" rel="nofollow"><img src="@Url.ThemeContent("Images/icons/facebook.png")" alt="facebook" /></a> }
        @if (Model.TwitterUsername != null) { <a href="http://www.twitter.com/@Model.TwitterUsername"  title="Visit @Model.UserName's twitter page" target="_blank" rel="nofollow"><img src="@Url.ThemeContent("Images/icons/twitter.png")" alt="twitter" /></a> }
    </div>

    <div class="user-avatar"><img src="@Model.AvatarUrl32" height="32" width="32" alt="@Model.UserName's avatar" /></div>
    <div class="user-name">@Html.ActionLink(Model.UserName, "View", "user", new { id = Model.Id, name = Model.UserName.Slugify() }, null)</div>
    <div class="user-stats">
        @if (SimpleForum.Data.Services.ConfigurationService.ReputationEnabled) {
            <span class="post-count" title="total reputation earned: @Model.TotalReputation">@Model.TotalReputation.PrettyNumbers()</span>
        }
        <span class="badge yellow" style="font-size:150%;" title="yellow badge">&bull;</span>
        <span class="post-count" title="number of posts made to date">@Model.Posts.Count</span>
    </div>
</div>